package com.shiguiwu.springmybatis.designpattern.composite.scene.vo;

import lombok.Data;

/**
 * @description: 决策结果
 * @author: stone
 * @date: Created by 2021/8/25 20:27
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.composite.scene.vo
 */
@Data
public class EngineResult {
    //执行结果
    private boolean isSuccess;

    //用户id
    private String userId;


    //规则树id
    private Long treedId;

    //果实节点id
    private Long nodeId;

    //果实节点值
    private String nodeValue;

    public EngineResult() {
    }


    public EngineResult(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }


    public EngineResult(String userId, Long treedId, Long nodeId, String nodeValue) {
        this.userId = userId;
        this.treedId = treedId;
        this.nodeId = nodeId;
        this.nodeValue = nodeValue;
        this.isSuccess = true;
    }
}
